package com.tfj.mvp.tfj.home.shop.adapter;

import android.content.Context;
import android.view.View;
import android.widget.ImageButton;
import android.widget.RelativeLayout;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.hyphenate.tfj.R;
import com.tfj.mvp.tfj.home.shop.VShopDetailAcitivity;
import com.tfj.mvp.tfj.home.shop.bean.ShopJingJIBean;
import com.tfj.utils.AntiShakeUtils;

public class JingjiAdapter extends BaseQuickAdapter<ShopJingJIBean, BaseViewHolder> {
    private Context context;
    public JingjiAdapter(Context context) {
        super(R.layout.item_shop_jingji);
        this.context = context;
    }

    @Override
    protected void convert(BaseViewHolder viewHolder, final ShopJingJIBean item) {
        ImageButton btn_tel = viewHolder.getView(R.id.btn_tel);
        btn_tel.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                if(AntiShakeUtils.isInvalidClick(v)){
                    return;
                }
            }
        });
    }
}
